package homework.ooday01._cp;

public class Car {
    String brand;
    String color;
    double price;

    public Car(){

    }
    public Car(String brand,String color,double price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println(color+"色的"+brand+"车，价格为："+price+",正在启动");
    }
    void run(){
        System.out.println(color+"色的"+brand+"车，价格为："+price+",正在奔跑");
    }
    void stop(){
        System.out.println(color+"色的"+brand+"车，价格为："+price+",正在停止");
    }
}
